NotificationFeed
Interfaces
NotificationFeedProps
Properties
className?
optionalclassName:string
Overrides or extends the styles applied to the component.
Default
null
FeedProps?
optionalFeedProps:Omit<FeedProps,"endpoint"|"ItemComponent"|"widgets"|"itemPropsGenerator"|"itemIdGenerator"|"ItemSkeleton"|"ItemSkeletonProps"|"FeedSidebarProps">
Props to spread to feed component
Default
{}
FeedSidebarProps?
optionalFeedSidebarProps:StickyBoxProps
Props to spread to single feed object
Default
{top: 0, bottomBoundary: `#${id}`}
id?
optionalid:string
Id of the feed object
Default
'notification_feed'
NotificationProps?
optionalNotificationProps:NotificationProps
Props to spread to single feed object
Default
empty object
widgets?
optionalwidgets:SCFeedWidgetType[]
Widgets to be rendered into the feed
Default
[CategoriesFollowed, UserFollowed]
Functions
NotificationFeed()
NotificationFeed(
inProps):Element
API documentation for the Community-JS Notification Feed Template. Learn about the available props and the CSS API.
This component renders the template for the notification feed. Take a look at our demo component here
Import
import {NotificationFeed} from '@selfcommunity/react-templates';
Component Name
The name SCNotificationFeedTemplate can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCNotificationFeedTemplate-root | Styles applied to the root element. |
Parameters
| Parameter | Type | Description |
|---|---|---|
inProps | NotificationFeedProps |
Returns
Element
NotificationFeedSkeleton()
NotificationFeedSkeleton():
Element
API documentation for the Community-JS Notification Feed Skeleton Template. Learn about the available props and the CSS API.
Import
import {NotificationFeedSkeleton} from '@selfcommunity/react-templates';
Component Name
The name SCNotificationFeedTemplate-skeleton-root can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCNotificationFeedTemplate-skeleton-root | Styles applied to the root element. |
Returns
Element